package com.aaa.util;

import java.io.Serializable;

/**
 * fileName:ResultObject
 * description:
 * author:MT
 * createTime:2020/1/11 9:45
 * version:1.0.0
 */
public class ResultObject<T> implements Serializable {
    //返回状态码
    private int code;
    //提示信息
    private  String msg;
    //返回的数据
    private T data;

    public ResultObject() {
    }
    public ResultObject(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
